import Vue from 'vue';
import Vuex from 'vuex';
import Router from 'vue-router';
import Meta from 'vue-meta';

Vue.use(Vuex);
Vue.use(Router);
Vue.use(Meta);

// 导入Element-ui组件库
import {
  Button,
  Input
} from 'element-ui';

// 注册组件
Vue.component(Button.name, Button);
Vue.component(Input.name, Input);

import createRouter from './router/index';
import createStore from './store';

import './css/index.css';
import App from './App.vue';

let router = createRouter();
let store = createStore();

let vm = new Vue({
  el: "#app",
  router,
  store,
  render: h => h(App)
});